package com.ruoyi.scheme.mapper;

import com.ruoyi.scheme.pojo.RepairMeasure;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface DecisionMakingMapper {
    /**
     * 批量插入修复措施
     * @param finalRepairMeasure
     * @return
     */
    Integer insertRepairMeasure(RepairMeasure finalRepairMeasure);

    /**
     * 根据方案ID查询修复措施
     * @param schemeId
     * @return
     */
    RepairMeasure selectRepairMeasureById(Integer schemeId);

    /**
     * 更新修复措施通过方案ID
     * @param schemeId
     * @param repairSchemeData
     * @return
     */
    boolean updateRepairMeasureSchemeById(Integer schemeId, Object repairSchemeData);
}
